package com.witframework.web.mvc;

import org.springframework.stereotype.Component;


/**
 * 视图转发控制器
 *
 */
@Component
public class Dispatcher implements Controller {		
	public String executor(WebContext webContext){
		String uri=webContext.getHttpRequest().getQueryString();
		try {
			webContext.getHttpRequest().getRequestDispatcher(uri).forward(webContext.getHttpRequest(),webContext.getHttpResponse());
		} catch (Exception e) {			
			e.printStackTrace();
		}
		return null;
	}	

}
